<!-- BEGIN: center-->
<script language="javascript" type="text/javascript">
function checkempty($obj,$msg){
	if($obj.value==""){
		alert($msg);
		$obj.focus();
		return false;
	}
	else{
		return true;
	}
}
function compare($obj1,$obj2,$msg){
	if($obj1.value==$obj2.value){
		return true;
	}
	else{
		alert($msg);
		$obj1.focus();
		return false
	}
}
function validateEmail(email){
	var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
	if (!re_mail.test(email.value)) {
		return false;
	}
	return true;
}
function checksubmit(){
    if(checkempty(document.frmContact.txtfullname,"<?php echo _MSG_FULL_NAME_INVALID?>"))
        if(checkempty(document.frmContact.txtphone,"<?php echo _MSG_PHONE_INVALID?>"))
            if(checkempty(document.frmContact.txtdes,"<?php echo _MSG_CONTENT_INVALID?>"))
                if(validateEmail(document.frmContact.txtemail)){
                    document.frmContact.submit();
                }
                else{
                    alert('<?php echo _MSG_EMAIL_INVALID?>');
                }
}
</script>
<div class="breadcrumbs">
    <a href="#" title="">Trang chủ</a> » <span><?php echo _LB_ABOUT_US?>	</span>
</div>
<div class="detail_block">
    <div class="sidebar">
        {FILE "templates/_htmls/left.support_online.html"}
    </div>
    <div class="detail_content">
        <h3 class="title"><?php echo _LB_CONTACT; ?></h3>
        <div class="content">
            {txt}
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td><strong>{msg}</strong></td>
                </tr>
            </table>
            <form id="frmContact" name="frmContact" method="post" action="{base_url}contact/sending/">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="content">
                <tr>
                <td colspan="2" ><strong>E-mail us by filling out the form below :</strong></td>
                </tr>
                <tr >
                <td colspan="2" class="textrednormal" style="padding-right: 20px;" align="right">* 
                    Required information</td>
                </tr>
                <tr>
                <td><?php echo _LB_FULL_NAME ?></td>
                <td style="padding-bottom:3px"><input name="txtfullname" type="text" maxlength="100" size="30" class="textred" />
                    <span class="textrednormal">*</span></td>
                </tr>
                <tr>
                <td><?php echo _LB_EMAIL ?></td>
                <td style="padding-bottom:3px"><input name="txtemail" type="text" maxlength="100" size="30" class="textred" />
                    <span class="textrednormal">*</span></td>
                </tr>
                <tr>
                <td><?php echo _LB_ADDRESS ?></td>
                <td style="padding-bottom:3px"><input name="txtaddress" type="text" maxlength="100" size="37" class="textred" /></td>
                </tr>
                <tr>
                <td><?php echo _LB_PHONE ?></td>
                <td style="padding-bottom:3px"><input name="txtphone" type="text" maxlength="100" size="15" class="textred" />
                    <span class="textrednormal">*</span></td>
                </tr>
                <tr>
                <td ><?php echo _LB_CONTENT ?></td>
                <td style="padding-bottom:3px"><textarea name="txtdes" cols="30" rows="5"></textarea>
                    <span class="textrednormal">*</span></td>
                </tr>
                <tr>
                <td>Capcha</td>
                <td><input name="txtcapcha" type="text" />
                    <img src="{base_url}randomimage.php" alt="security Image"  title="security Image" /><span class="textrednormal">*</span></td>
                </tr>
                <tr>
                <td colspan="2" height="10px">&nbsp;</td>
                </tr>
                <tr>
                <td><input name="action" type="hidden" value="sending" /></td>
                <td><input name="Send" type="button" onclick="checksubmit()" title="Send" value="Send" class="button_border_black"  />
                    <input name="Cancel" class="button_border_black" onclick="javascript:location.href='{base_url}contact/'" title="Cancel" type="button" value="Cancel"  />
                </td>
                </tr>
            </table>
            </form>
        </div>
    </div>
</div>
<!-- END: center-->
